import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import './assets/font_3899576_30mxor255zc/iconfont.css'
import 'default-passive-events'

Vue.use(ElementUI);
Vue.config.productionTip = false
Vue.prototype.$http = axios
axios.defaults.withCredentials = true

Math.formatFloat = function (f, digit) {
  var m = Math.pow(10, digit);
  return Math.round(f * m, 10) / m;
}

//配置请求根路径
axios.defaults.baseURL='http://101.43.13.16:8080/school'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
